package com.hc.demo.exception;
/**
 * 该异常是非检查性异常，不需要手工try-catch
 */
public class TijianException extends RuntimeException{

    private Integer exCode;
    private String message;

    public TijianException(Integer exCode,String message) {
        this.exCode = exCode;
        this.message = message;
    }

    public TijianException() {

    }

    public Integer getExCode() {
        return exCode;
    }

    public void setExCode(Integer exCode) {
        this.exCode = exCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
